package controller;

import java.net.InetAddress;
import java.net.UnknownHostException;

public class Resolver {
	private static Resolver instance = new Resolver();
	private Resolver(){
		
	}
	public String getIpFromHostname(String hostname) throws UnknownHostException{
			return InetAddress.getByName(hostname).toString();
	}
	public static Resolver getInstance(){
		return instance;
	}
}


